package spring.demo.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;


@Component
public class MyListener implements ApplicationListener<MyEnvent> {
    @Override
    public void onApplicationEvent(MyEnvent event) {
        System.out.println(this.getClass().getSimpleName() +"_________" +event);
    }

}
